package com.mryan.ps_common.entity;

import java.util.HashMap;

/**
 * @BelongsProject: ps_cloud
 * @BelongsPackage: com.mryan.ps_common.entity
 * @Author: Yan
 * @CreateTime: 2021-04-23 21:15
 * @Description:
 */
public class PSResponse extends HashMap<String,Object> {

	private static final long serialVersionUID = -4244120220830919153L;

	public PSResponse message(String message) {
		this.put("message", message);
		return this;
	}

	public PSResponse data(Object data) {
		this.put("data", data);
		return this;
	}

	@Override
	public PSResponse put(String key, Object value) {
		super.put(key, value);
		return this;
	}

	public String getMessage() {
		return String.valueOf(get("message"));
	}

	public Object getData() {
		return get("data");
	}
}
